package com.project.blog.mapper;

import com.project.blog.entity.Userme;
import com.project.blog.vo.UsermeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UsermeMapper {

    public List<Userme> findUsermeByName(String usermeName);

    public List<Userme> ListUserme();

    public List<Userme> queryPage(Integer startRows);

    public int getRowCount();

    public int insertUserme(Userme userme);

    public int delete(int usermeId);

    public int Update(Userme userme);

//    批量删除
    public int dels(List<Integer> ids);

//    批量添加
    public int insertDepartments(List<Userme> list);

//    查询所有用户的信息和ID卡名(多表查询)
    public List<UsermeVo> findAllUsermeCardid(@Param("usermeId") int usermeId);


}
